import django_filters
from .models import *

class RecordIncomesFilter(django_filters.rest_framework.FilterSet):
    """过滤器"""

    userCode = django_filters.CharFilter(field_name='user__code')

    class Meta:
        model = RecordIncomes
        fields = '__all__'